let dest = {},
  src = { id: "src" };

// assign 会修改目标对象，返回修改后的目标对象
let result = Object.assign(dest, src);

console.log(result);

console.log(result === dest);

console.log(result === src);

// 会把对象属性的值进行复制
